package com.efast.dmom.mgmt.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.efast.cafe.commponent.job.base.AbstractStatefulJobBean;
import com.efast.cafe.commponent.job.bean.ScheduleExecuteLog;
import com.efast.cafe.commponent.log.ext.CafeLogger;
import com.efast.cafe.commponent.log.ext.CafeLoggerFactory;
import com.efast.cafe.framework.spring.SpringContextUtils;
import com.efast.dmom.mgmt.service.les.WindowReplenishmentByInventoryConsumptionJobService;

/**
 * 【窗口补货-按库存消耗】 窗口补货 ：Window replenishment 库存消耗： Inventory consumption
 *
 * 
 * @author chlp
 */
public class WindowReplenishmentByInventoryConsumptionJob extends AbstractStatefulJobBean {
	
	CafeLogger log = CafeLoggerFactory.getLogger(getClass());
	
	@Override
	protected void executeInternal(JobExecutionContext context,ScheduleExecuteLog cachelog) throws JobExecutionException {
		log.info("定时任务执行开始--->窗口补货-按库存消耗.....");
		WindowReplenishmentByInventoryConsumptionJobService windowReplenishmentByInventoryConsumptionJobService = SpringContextUtils.getBean(WindowReplenishmentByInventoryConsumptionJobService.class);
		windowReplenishmentByInventoryConsumptionJobService.excute();
		log.info("定时任务执行完毕--->窗口补货-按库存消耗.....");
	}
}